:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: Clear the JDK environment.
::
:: Author: ZHANGQ
:: Create Time: 2020-06-26
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

@ECHO OFF

IF DEFINED PATH_BEFORE_JDK (
    SET PATH=%PATH_BEFORE_JDK%
    SET PATH_BEFORE_JDK=
    ECHO Recover environment variables 'PATH'.
)

IF DEFINED PROMPT_BEFORE_JDK (
    SET PROMPT=%PROMPT_BEFORE_JDK%
    SET PROMPT_BEFORE_JDK=
    ECHO Recover environment variables 'PROMPT'.
)

IF DEFINED JAVA_HOME (
    SET JAVA_HOME=
    ECHO Remove environment variables 'JAVA_HOME'.
)

IF DEFINED JAVA_TOOL_OPTIONS (
    SET JAVA_TOOL_OPTIONS=
    ECHO Remove environment variables 'JAVA_TOOL_OPTIONS'.
)
